import Layout from '@/layout/index.vue'

export default {
  path: '/ope-manage',
  name: 'AcquisitionControlManage',
  meta: { title: '采控管理' },
  component: Layout,
  children: [
    {
      path: 'node',
      name: 'OpeNode',
      meta: {
        title: '节点',
        componentName: 'ControlNode',
        keepAlive: ['ControlDetail', 'BrokerDetail'],
      },
      component: () =>
        import('@/views/acquisition-control-manage/node/index.vue'),
    },
    {
      path: 'node/broker-detail',
      name: 'BrokerDetail',
      meta: {
        title: '代理节点详情',
        hidden: true,
        componentName: 'brokerDetail',
        keepAlive: ['CreatePolicy'],
      },
      component: () =>
        import(
          '@/views/acquisition-control-manage/node/components/details/brokerDetail.vue'
        ),
    },
    {
      path: 'node/control-details',
      name: 'ControlDetail',
      meta: {
        title: '控制节点详情',
        hidden: true,
        componentName: 'controlDetail',
        keepAlive: ['CreatePolicy'],
      },
      component: () =>
        import(
          '@/views/acquisition-control-manage/node/components/details/controlDetail.vue'
        ),
    },
    {
      path: 'area',
      name: 'OpeArea',
      meta: {
        title: '区域',
        componentName: 'Region',
        keepAlive: ['RoutingDetail'],
      },
      component: () =>
        import('@/views/acquisition-control-manage/region/index.vue'),
    },
    {
      path: 'area/area-detail',
      name: 'AreaDetail',
      meta: {
        title: '区域详情',
        hidden: true,
        componentName: 'areaDetail',
        keepAlive: ['CreatePolicy'],
      },
      component: () =>
        import(
          '@/views/acquisition-control-manage/region/components/details/AreaDetail.vue'
        ),
    },
    {
      path: 'area/routing-detail',
      name: 'RoutingDetail',
      meta: {
        title: '路由策略详情',
        hidden: true,
        componentName: 'routingDetail',
        keepAlive: ['CreatePolicy'],
      },
      component: () =>
        import(
          '@/views/acquisition-control-manage/region/components/details/RoutingDetail.vue'
        ),
    },
    {
      path: 'execute-history',
      name: 'ExecuteHistory',
      meta: {
        title: '执行历史',
        // componentName: 'executeHistory',
        // keepAlive: ['ExecuteHistoryDevice'],
      },
      component: () =>
        import('@/views/acquisition-control-manage/execute-history/index.vue'),
    },
    {
      path: 'execute-history-device',
      name: 'ExecuteHistoryDevice',
      meta: {
        title: '执行历史-设备信息',
        hidden: true,
        // componentName: 'executeHistoryDevice',
        // keepAlive: ['ExecuteHistoryDetail'],
      },
      component: () =>
        import(
          '@/views/acquisition-control-manage/execute-history/DeviceList.vue'
        ),
    },
    {
      path: 'execute-history-detail',
      name: 'ExecuteHistoryDetail',
      meta: { title: '执行历史-详情', hidden: true },
      component: () =>
        import(
          '@/views/acquisition-control-manage/execute-history/HistoryDetail.vue'
        ),
    },
    {
      path: 'configuration',
      name: 'Configuration',
      meta: { title: '材料黑名单' },
      component: () =>
        import('@/views/acquisition-control-manage/blacklist/index.vue'),
    },
    {
      path: 'details',
      name: 'ConfigurationDetails',
      meta: { title: '采控配置详情' },
      component: () =>
        import('@/views/acquisition-control-manage/blacklist/details.vue'),
    },
  ],
}
